﻿# CMakeList.txt : CMake project for CodeInterviewGuide_Book, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)

# Enable Hot Reload for MSVC compilers if supported.
if (POLICY CMP0141)
  cmake_policy(SET CMP0141 NEW)
  set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project ("CodeInterviewGuide_Book")

# Add source to this project's executable.
add_executable (CodeInterviewGuide_Book "CodeInterviewGuide_Book.cpp" "CodeInterviewGuide_Book.h")
add_executable (MinStack "stack_and_queue/MinStack.cpp")
add_executable (QueueUsingStack "stack_and_queue/QueueUsingStack.cpp")
add_executable (ReverseStackWithRecursive "stack_and_queue/ReverseStackWithRecursive.cpp")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET CodeInterviewGuide_Book PROPERTY CXX_STANDARD 20)
endif()

# TODO: Add tests and install targets if needed.
add_executable(CatDogQueue "stack_and_queue/CatDogQueue.cpp")
add_executable(StackSortWithStack stack_and_queue/StackSortWithStack.cpp)
